<!--增加过滤器解决恶意html及None问题-->
<%
def ESC_BLANK(text):
    if text=="None":
        return ""
    else:
        return text
%>
<%page expression_filter="h,ESC_BLANK"/>
<style>
    .input input{
        width:60px;
        border:1px solid #000;
        background-color:#aaFFaa;
    }
    .gray{
        background-color:#fafafa;
    }
    .yellow{
        background-color:#ffffdd;
    }
    .green{
        background-color:#99CC00
    }
    .red{
        background-color:#ffdddd
    }
    .lightgreen{
        background-color:#ddffdd
    }
    .deepgreen{
        background-color:#339966
    }
</style>

<table class="table" style="margin:0px">
    <thead>
    <tr>
        <th>公司编号</th>
        <th>父级单位</th>
        <th>公司名称</th>
        <th>详细地址</th>
        <th>邮编</th>
        <th>资金负责人</th>
        <th>联系电话</th>
        <th>邮件地址</th>
        <th>公司类别</th>
        <th>备注</th>
        <th >操作</th>
    </tr>
    </thead>
    <tbody>
    %for data in i.recs:
    <tr>
        <td><div class="edit" id="parentinc_${data.incno}">${data.incno}</div></td>
        <td><div class="edit" id="parentinc_${data.id}">${data.parentinc}</div></td>
        <td><div class="edit" id="incname_${data.id}">${data.incname}</div></td>
        <td><div class="edit" id="addressdetail_${data.id}">${data.addressdetail}</div></td>
        <td><div class="edit" id="postno_${data.id}">${data.postno}</div></td>
        <td><div class="edit" id="personincharge_${data.id}">${data.personincharge}</div></td>
        <td><div class="edit" id="phoneno_${data.id}">${data.phoneno}</div></td>
        <td><div class="edit" id="emailaddress_${data.id}">${data.emailaddress}</div></td>
        <td><div class="edit" id="inctype_${data.id}">${data.inctype}</div></td>
        <td><div class="edit" id="bz1_${data.id}">${data.bz1}</div></td>
        <td><a href="javascript:;" onclick="doedit('${data.id}')">修改</a> | <a href="javascript:;" onclick="dodel('${data.id}')">删除</a></td>
    </tr>
    %endfor
    </tbody>
</table>
<script type="text/javascript" src="/static/skins_/js/settings.js"></script>
<script>
   /** $(function(){
        $('.edit').editable('/f00/f0011/ajax?act=save',{"cssclass":"input","select":true,"indicator":'<img src="/static/loading/11.gif">',"onblur":"submit"});
    })**/
</script>
